Skip to content

fix: the title bar's menus keep under the bar, at most three quarters of the window tall, with a more-below hint (2.21.0) - #44

Merged
nodemode-ai merged 3 commits into
mainfrom
fix/menu-under-bar-2.21.0
Nov 30, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
fix/menu-under-bar-2.21.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix: the title bar's menus keep under the bar, at most three quarters of the window tall, with a more-below hint (2.21.0)

Summary

  • File, Edit, View, Extensions, Help and Panels no longer open over the title bar. Cause: each set its top to its button's bottom, which is 8 px inside the bar (32 against the bar's 40). Fix: one helper, ui/menu-fit.ts openUnder, opens them at the larger of the given top and the .titlebar bottom.
  • They no longer run off the bottom of a short window. Cause: the .dropdown card had no height cap or overflow. Fix: an inline max-height of min(75% of the window, innerHeight - top - 4), set while the card is hidden and before it is measured. It is worked out again on window resize, and no rows are rebuilt.
  • New: while rows remain below, the menu's bottom rows fade out under a small chevron pill (FormVis 2.8.4's hint). The rows are moved once, when the menu is built, into a .dropdown-list scroller that carries the mask, so the card's glass, border and shadow stay whole.
  • Blend mode (inspector) and Timeline height use the same helper. They keep their place under their button and get the cap and the hint.
  • formcut has no right-click menu. The one contextmenu listener (keyframe button in the inspector) opens nothing, so section 3b had nothing to change.

Commits

  • fix: the title bar's menus open under the bar, at most three quarters of the window tall, and show a hint while rows remain below
  • fix: the Blend mode and Timeline height menus keep inside the window and show the same hint
  • chore(release): 2.21.0, the title bar's menus keep under the bar and show a hint while rows remain below

Version

v2.21.0 (release commit is last). Bumped: backend/app/main.py APP_VERSION, frontend/package.json, the two own-version fields of frontend/package-lock.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, formcut's entry in src-tauri/Cargo.lock, form-functions.json, and the README badge. Also in the release commit: the rebuilt demo/, demos/grade and demos/deliver bundles, and the interface map that setup/skill_maps.py regenerated for the new file. No CHANGELOG.md exists, so none was added.

Checks

  • npm run build (tsc then vite build): clean.
  • npm run demo and the two demos/* vite builds: built.
  • python setup/preflight.py: version agreement and the other checks pass. The skill map was out of date because of the new file and was regenerated. One failure is from this machine: the engine does not import because fastapi is not installed here.
  • menuprobe on the production build in headless Chrome, CPU slowed 4x. The backend was not running, and the start overlay was hidden by a script:
    • 1280x800, 1000x480 and 1280x480: File, Edit, View, Extensions, Help and Panels open with top 40 against a bar bottom of 40, in every frame while opening. All fit (Edit 329 px, Panels 445 px at 1280x800), so none has the hint.
    • 1280x400: Edit is capped to 300 px (75% of 400), bottom 340, and the hint is on with the pill at opacity 1 when first measured. At its last row the hint is off and the pill is at opacity 0.
    • 1600x560: Panels is capped to 420 px with the hint on, and the hint is off at the end.
    • Panels is not shown at a 1000 px width, so it was not measured there.
    • Before (origin/main, from an earlier probe of this branch before the bar floor was added): menus opened at top 32 against a bar bottom of 40.
  • DOM law: verified under throttling for placement. The lowest top seen in any frame while opening was 40, and the hint was on when first measured.

Not run: the Python test suite (it needs fastapi, which is not installed here); the 1871x1080 and 800x320 sizes; the hint fade timings; End and Home; arrow-key focus against the fade; reduced motion; the Blend mode and Timeline height menus in a browser (they need a selected clip and the editor); the rebuilt demos opened from file://; the desktop shell. No right-click menu exists, so no before and after numbers for one.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

… of the window tall, and show a hint while rows remain below

File, Edit, View, Extensions, Help and Panels opened at their button's
bottom, 8 px inside the title bar, with no height cap, so a long menu ran
off the window. One helper, ui/menu-fit.ts, now opens them under the bar
with an inline cap set before they show, and wraps their rows in a scroller
whose bottom fades under a small pill while rows remain below.
…and show the same hint

Both opened under their button with no height cap, so Blend mode, opened
low in a short window, ran off the bottom. They now open through the same
helper as the title bar's menus: same place, a cap set before they show,
and the more-below hint.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 22:55
@nodemode-ai
nodemode-ai merged commit 4e6089c into main Nov 30, 2026
8 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-2.21.0 branch November 30, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant